#include <REGX52.H>

sbit ADDR0=P1^0;
sbit ADDR1=P1^1;
sbit ADDR2=P1^2;
sbit ADDR3=P1^3;
sbit ENLED=P1^4;

/// @brief LED初始化函数
void LED_Init(){
	ADDR0=0;
	ADDR1=1;
	ADDR2=1;
	ADDR3=1;
	ENLED=0;
}

/// @brief LED序号数组
unsigned char LED_Num[]={0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F};

void main(){
	unsigned char i=0;

	LED_Init();
	P0=LED_Num[0];
	while(1);
}